<?php
defined('_JEXEC') or die('Restricted access');
JToolBarHelper::title(JText::_('COM_JHTRAQ_EDIT_USER'), 'generic.png');
JToolBarHelper::save();
JToolBarHelper::cancel();
//JToolBarHelper::preferences('com_jhtraq');
// print_r($this);
?>
<?php JHTML::_('behavior.tooltip'); ?>

<form action="index.php" method="post" name="adminForm" autocomplete="off">
<input type="hidden" name="option" value="com_jhtraq" />
<input type="hidden" name="view" value="users" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="id" value="<?php echo $this->user->id;?>" />
<fieldset class="adminform">
<table width="100%" cellspacing="0" class="adminlist">
<tr>
	<td width="150"><label for="username"><?php echo JText::_('COM_JHTRAQ_USERNAME');?></label></td>
	<td><?php echo $this->user->username;?></td>
<tr>
	<td width="150"><label for="group_id"><?php echo JText::_('COM_JHTRAQ_USER_GROUP');?></label></td>
	<td>
		<select name="group_id">
			<?php 
				foreach($this->groups as $gid=>$group)
				{
					?>
					<option value="<?php echo $gid?>" <?php if($gid == $this->user->group_id) echo 'Selected';?>><?php echo $group;?></option>
					<?php 
				}
				?></select>
	</td>
</tr>
	

</table>
</fieldset>
</form>